x86/msr: Definitions for MSR_INTEL_CORE_THREAD_COUNT
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Apr 2019 12:26:30 +0000 (12:26 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 May 2019 14:37:39 +0000 (15:37 +0100)
commit9be661341da5d260c1b8fd969e4ba5c53d076e54
tree20e05e87c8c64ce005e6380a0b7ec82c43c0a1c5
parentf5cc6e140ae31675162935076f3dd06b61ee6aed
x86/msr: Definitions for MSR_INTEL_CORE_THREAD_COUNT

This is a model specific register which details the current configuration
cores and threads in the package.  Because of how Hyperthread and Core
configuration works works in firmware, the MSR it is de-facto constant and
will remain unchanged until the next system reset.

It is a read only MSR (so unilaterally reject writes), but for now retain its
leaky-on-read properties.  Further CPUID/MSR work is required before we can
start virtualising a consistent topology to the guest, and retaining the old
behaviour is the safest course of action.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit d4120936bcd1695faf5b575f1259c58e31d2b18b)
xen/arch/x86/msr.c
xen/include/asm-x86/msr-index.h